package com.srit.identify.entity;

import lombok.Getter;
import lombok.Setter;
import org.springframework.util.StringUtils;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Getter
@Setter
@Entity
@Table(name = "identifyInfo")
public class IdentifyInfo {

    @Id
    private String picID;

    private Integer classType;

    private String picData;

    public boolean verify(){
        return !StringUtils.isEmpty(picID) && !StringUtils.isEmpty(classType) &&
                !StringUtils.isEmpty(picData);
    }
}
